<?php
header("Content-type:application/json;charset=utf-8");
error_reporting(E_ALL ^ E_NOTICE);
ini_set("display_errors", "On");

define("ROOT_DIR", dirname(__FILE__));
define("DS", DIRECTORY_SEPARATOR);
define("CORE_DIR", ROOT_DIR . DS . 'framework');
require_once ROOT_DIR . DS . 'stdafx.php';
require_once CORE_DIR . DS . 'Core.php';

try {
    $core = Core::getInstance()->boot(ROOT_DIR . '/config/core.php');//->run();
    $core->registerPlugin(new LoginPlugin());
    $core->registerPlugin(new CheckblackPlugin());
    $core->run();
} catch (Exception $ex) {
    echo $ex->getMessage();
}
